package com.molichuxing.services.business.dto.response;

import com.molichuxing.framework.dto.RequestRootDto;
import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.GoodsBuyBackEnum;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @create_date: 2019/4/3
 * @name:goods-service
 * @author xuelin yi
 **/
@Data
public class GoodsSpecBizDto extends ResponseRootDto {

    /**
     * 用车时长
     */
    private Integer useVehicleTime;

    /**
     * 是否回购(0:否，1：是)
     */
    private Byte isBuyBack =-1;

    /**
     * 是否回购
     */
    private String isBuyBackStr;

    /**
     * 还 款 周 期
     */
    private Integer paymentCycle=1;

    public void setIsBuyBack(Byte isBuyBack) {
        this.isBuyBack = isBuyBack;
        if(null != GoodsBuyBackEnum.getName(isBuyBack)) {
            this.isBuyBackStr = GoodsBuyBackEnum.getName(isBuyBack).getName();
        }
    }
}
